<?php
require_once 'CMS/Util.php';
require_once 'CMS/Mvc/BaseController.php';
require_once 'CMS/Mvc/BaseUserController.php';
require_once 'CMS/UserCommon.php';

 
class Language_LanguageController extends BaseUserController{

	public function init(){
		parent::init();
	}
	public function indexAction(){
		if(count($_GET['language_id']) && isset($_GET['language_id'])){
			$_SESSION['language'] = $_GET['language_id'];
			$response = 1;
			$this->_helper->json($response);
		}else{
			$response = -1;
			$this->_helper->json($response);
		}
	}
}